// 添加统计代码
function AddAnalysis(){

    var addScript = function( src ){
        var script = document.createElement("script");
        script.type = 'text/javascript';
        script.async = true;
        script.src = src;
        var s = document.head || document.getElementsByTagName("head")[0];
        s.appendChild(script);
    };

    // itag
    // addScript("//static.zhongan.com/website/other/download/weixin/za-itag.js");

    // baidu
    var _hmt = _hmt || [];
    addScript("//hm.baidu.com/hm.js?b7644745bc16bb3843c74c4a8a01df1b");

    // 铜盾
    (function() {
        _fmOpt = {
            partner: 'zhongcaixian',
            appName: 'zhongcaixian_web',
            token: $('[name="token_id"]').val()
        };
        var cimg = new Image(1,1);
        cimg.onload = function() {
            _fmOpt.imgLoaded = true;
        };
        cimg.src = "https://fp.fraudmetrix.cn/fp/clear.png?partnerCode=zhongcaixian&appName=zhongcaixian_web&tokenId=" + _fmOpt.token;
        addScript('//static.zhongan.com/resource/js/fm.js?ver=0.1&t=' + (new Date().getTime()/3600000).toFixed(0))
    })();

    //GA统计
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-61955298-2', 'auto');
    ga('send', 'pageview');

}
